<html>
<head>
    <title>{{ .title }}</title>
</head>
<body>
hello {{ .name }}
{{ if gt .age 20 }} hello, old main {{ .name }}
{{ else }} hello, yong man {{ .name }}
{{ end }}

{{ .name }} 的朋友们: {{ with .friend}}

<table border="1"> <tr> <td>姓名</td> <td>年龄</td> <td>描述</td> </tr>
    {{ range . }} <tr> <td>{{ .Name }}</td> <td>{{ .Age }}</td> <td>{{ .Describe }}</td> </tr> {{ end }}
</table> {{ end }}

{{ . }} </body>

</html>